<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>标签管理</h2>
	</div>

	<div class="cf">
		<a class="btn" href="{:U('add','pid='.$pid)}">新 增</a>
	</div>

	<div class="data-table table-striped">
		<div class="tab-content"></div>
		<volist name="_list" id="vo" >
			<span class="label label-info label-md">{$vo['tag_name']}</span>
		</volist>
	</div>
</block>

<block name="script">
<script type="text/javascript">
    $(function() {
    	//点击排序
    	$('.list_sort').click(function(){
    		var url = $(this).attr('url');
    		var ids = $('.ids:checked');
    		var param = '';
    		if(ids.length > 0){
    			var str = new Array();
    			ids.each(function(){
    				str.push($(this).val());
    			});
    			param = str.join(',');
    		}

    		if(url != undefined && url != ''){
    			window.location.href = url + '/ids/' + param;
    		}
    	});
    });
</script>
</block>